package com.daedalus.ushtrimePrintimi.tipikeMeYje;/*
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * Date: 12-12-08
 * Time: 11.58.PD
 */

import java.util.Scanner;

public class TrekendeshBosh {

    public static void main(String[] args){

        int n;
        int nrYje;
        int nrHapsiraPara;
        int nrHapsiraMes;

        System.out.print("Numri i Rreshtave: ");
        Scanner input = new Scanner(System.in);
        n=input.nextInt();

        nrHapsiraPara=n-1;
        nrHapsiraMes = -1;

        for (int i=0; i<n-1; i++){
            for (int j=0; j<nrHapsiraPara; j++){
                System.out.print(" ");
            }
            System.out.print("*");
            for (int j=0; j<nrHapsiraMes; j++){
                System.out.print(" ");
            }
            if (i!=0){
                System.out.print("*");
            }
            System.out.println();

            nrHapsiraPara--;
            nrHapsiraMes+=2;
        }
        for (int i=0; i<nrHapsiraMes+2; i++){
            System.out.print("*");
        }



    }
}
